Append the File content in python